package org.huntaway.kindergarten.test;

public class ClassC implements Comparable {
	int num;
	String name;

	ClassC(int num, String name) {
		this.num = num;
		this.name = name;
	}

	public int compareTo(Object o) {
		ClassC s = (ClassC) o;
		return num > s.num ? 1 : (num == s.num ? 0 : -1);
	}

	public String toString() {
		return "ClassC num:" + num + "," + "name:" + name;
	}
}
